﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaoCaoCanBoDoanVienCongDoanDuocHocTapBoiDuong_Update.aspx.cs"
    Inherits="AIC_CD.BaoCaoCanBoDoanVienCongDoanDuocHocTapBoiDuong_Update" MasterPageFile="~/Site1.Master"  MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <div id="Div1" class="FormTitleA3" runat="server">
        <p class="TextTitle">
            <label id="lblFormName" runat="server" class="lblFormName">
                Cập nhật báo cáo cán bộ đoàn viên công đoàn được học tập, bồi dưỡng đào tạo
            </label>
            <asp:ImageButton CssClass="btnExit" ID="ImageButton1" runat="server" ImageUrl="Images/exit.png"
                Height="24px" OnClick="ImageButton1_Click" />
        </p>
    </div>
    <div class="FormMainA3">
        <div class="labelNotice">
            <label id="lblNotice" style="color: Red" runat="server" visible="false">
                Thông báo lỗi</label>
        </div>
        <div class="labelNotice">
            <font color="black">Chọn kỳ báo cáo : </font>
            <asp:DropDownList ID="cboKyBaoCao" runat="server" AutoPostBack="true" Width="300"
                CssClass="ControlDropdown" OnSelectedIndexChanged="cboKyBaoCao_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:Button ID="btnLuu" Visible="false" runat="server" Text="Lưu lại" ToolTip="Lưu tên báo cáo, người lập báo cáo, người ký báo cáo"
                CssClass="cmdBtn" OnClick="btnLuu_Click" />
        </div>
        <table style="width: 100%; padding: 5px;">
            <tr>
                <td colspan="2" align="center" runat="server" id="tdTenBaoCao">
                    <asp:TextBox ID="txtTenBaoCao" runat="server" Width="100%" Text="BÁO CÁO CÁN BỘ ĐOÀN VIÊN CÔNG ĐOÀN ĐƯỢC HỌC TẬP, BỒI DƯỠNG ĐÀO TẠO"
                        class="ReportTitle"> </asp:TextBox>
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnl" runat="server" CssClass="panelA3">
            <asp:GridView ID="grvData" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                OnRowCommand="grvData_RowCommand" OnRowDataBound="grvData_RowDataBound" OnRowEditing="grvData_RowEditing"
                OnPageIndexChanging="grvData_PageIndexChanging" DataKeyNames="ID" OnRowCancelingEdit="grvData_RowCancelingEdit"
                OnRowCreated="grvData_RowCreated" ShowHeader="False" Width="100%" OnRowDeleting="grvData_RowDeleting">
                <Columns>
                    <asp:TemplateField HeaderText="STT">
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle Width="60px" HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="STT">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtHoTenEdit" runat="server" Text='<%# Eval("HoTen") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtHoTenNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("HoTen") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtNamSinhEdit" runat="server" Text='<%# Eval("NamSinh") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtNamSinhNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("NamSinh") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtChucVuCDEdit" runat="server" Text='<%# Eval("ChucVuCD") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtChucVuCDNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("ChucVuCD") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtChucVuCQEdit" runat="server" Text='<%# Eval("ChucVuChinhQuyen") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtChucVuCQNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("ChucVuChinhQuyen") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtCTriEdit" runat="server" Text='<%# Eval("TrinhDoChinhTri") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtCTriNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("TrinhDoChinhTri") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtCTrachEdit" runat="server" Text='<%# Eval("TrinhDoChuyenTrach") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtCTrachNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("TrinhDoChuyenTrach") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtCongDoanEdit" runat="server" Text='<%# Eval("TrinhDoCongDoan") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtCongDoanNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("TrinhDoCongDoan") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtNNguEdit" runat="server" Text='<%# Eval("TrinhDoNgoaiNgu") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtNNguNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("TrinhDoNgoaiNgu") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtViTinhEdit" runat="server" Text='<%# Eval("TrinhDoViTinh") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtViTinhNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("TrinhDoViTinh") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtYeuCauEdit" runat="server" Text='<%# Eval("YeuCauDaoTaoBoiDuong") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtYeuCauNew" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("YeuCauDaoTaoBoiDuong") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderStyle Wrap="False"></HeaderStyle>
                        <ItemStyle Wrap="False" Width="60px"></ItemStyle>
                        <FooterTemplate>
                            <asp:ImageButton ID="imgInsert" runat="server" ImageUrl="~/Images/insert.png" ToolTip="Thêm mới"
                                CommandName="<%# AIC_CD.MyConst.Action.Addnew %>" />
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="imgEdit" runat="server" ImageUrl="images/edit.gif" ToolTip="Sửa"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="Edit">
                            </asp:ImageButton>
                            <asp:ImageButton ID="imgDel" runat="server" ImageUrl="images/delete.png" ToolTip="Xóa"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="<%# AIC_CD.MyConst.Action.Delete %>"
                                OnClientClick="return confirm('Bạn có chắc là muốn xóa bản ghi này không ?')">
                            </asp:ImageButton>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:ImageButton ID="imgUpdate" runat="server" ImageUrl="images/approval.png" ToolTip="Cập nhật"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="<%# AIC_CD.MyConst.Action.Approve %>">
                            </asp:ImageButton>
                            <asp:ImageButton ID="imgCancel" runat="server" CommandName="Cancel" ImageUrl="images/cancel.png"
                                CommandArgument='<%# Bind("ID") %>' />
                        </EditItemTemplate>
                        <ItemStyle Width="70px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:Panel>
        <table style="width: 100%; padding: 5px;">
            <tr>
                <td colspan="2" style="height: 20px;">
                </td>
            </tr>
            <tr>
                <td id="Td1" runat="server">
                </td>
                <td id="Td2" runat="server" align="right">
                    TM.BAN CHẤP HÀNH<br />
                    Chủ tịch<br />
                    (Ký họ tên)<br />
                    <asp:TextBox ID="txtThuTruongCoQuanChinhTri" runat="server" Width="200px"
                        class="ControlDropdown InputText"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
